package com.six.demo;
//lombok技术：自动添加构造方法、getter、setter、toString、equals、hashCode等方法
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Card {
    private String cardId;
    private String name;
    private String phone;
    private double money;

   //预存金额

    public void deposit(double money)
    {
    	this.money+=money;
    }
    //消费金额

    public void consume(double money)
    {
    	this.money-=money;
    }
}
